Pack some hvmop memory structures better
authorKeir Fraser <keir@xen.org>
Mon, 7 Feb 2011 09:58:11 +0000 (09:58 +0000)
committerKeir Fraser <keir@xen.org>
Mon, 7 Feb 2011 09:58:11 +0000 (09:58 +0000)
commit00cee37d3759218c28856d092713b44633fde1f3
tree0190b6c7348f4f3a80e14af27a444a3771996fec
parent462236bac932a5016dc0c2907054b5517a51728a
Pack some hvmop memory structures better

Some of the hvmop memory structures have a shocking amount of
unnecesssary padding in them.  Elements which can have only 3 values
are given 64 bits of memory, and then aligned (so that there is
padding behind them).

This patch resizes and reorganizes in the following way, (hopefully)
without introducing any differences between the layout for 32- and
64-bit.

xen_hvm_set_mem_type:
 hvmmem_type -> 16 bits
 nr -> 32 bits (limiting us to setting 16TB at a time)

xen_hvm_set_mem_access:
 hvmmem_access -> 16 bits
 nr -> 32 bits

xen_hvm_get_mem_access:
 hvmmem_access -> 16 bits

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/include/public/hvm/hvm_op.h